//
//  CollectButton.m
//  UIA段项目 墨家天气
//
//  Created by dllo on 15/9/15.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "CollectButton.h"

@implementation CollectButton

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.collectImage = [[UIImageView alloc]init];
        
        [self addSubview:_collectImage];
        
        self.collectLable = [[UILabel alloc]init];
        self.collectLable.textColor = [UIColor whiteColor];
        self.collectLable.font = [UIFont systemFontOfSize:16 * OffWidth];
        [self addSubview:_collectLable];
        
        
    }
    return self;

}
- (void)layoutSubviews
{
    self.collectImage.frame = CGRectMake(10 * OffWidth, 5 * OffHeight, 25 * OffWidth, 25 *OffHeight);
    self.collectLable .frame = CGRectMake(38 * OffWidth, 3 * OffHeight, 65 * OffWidth, 30 * OffHeight);
    
}
@end
